import 'package:flutter/material.dart';

import 'package:junyeyishu/utils/utils.dart';

class QGSaleBuyRecordCell extends StatefulWidget {
  dynamic data;

  QGSaleBuyRecordCell({super.key, this.data});
  @override
  State<QGSaleBuyRecordCell> createState() => QGSaleBuyRecordCellState();
}

class QGSaleBuyRecordCellState extends State<QGSaleBuyRecordCell> {
  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.symmetric(horizontal: 15.rpx),
      padding: EdgeInsets.symmetric(vertical: 20.rpx),
      decoration: BoxDecoration(
          border: Border(
              bottom:
                  BorderSide(width: 0.5.rpx, color: const Color(0xFFEAEAEA)))),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          Expanded(
            child: Container(
              alignment: Alignment.centerLeft,
              child: Text(
                "￥${widget.data?["goods_price"]}",
                style: TextStyle(
                    color: Color(0xFF111111),
                    fontSize: 14.rpx,
                    fontWeight: FontWeight.bold),
              ),
            ),
          ),
          Text(
            '${widget.data?["num"]}单',
            style: TextStyle(
                color: Color(0xFF111111),
                fontSize: 14.rpx,
                fontWeight: FontWeight.normal),
          ),
        ],
      ),
    );
  }
}
